public class demo {
    public static void main(String[] args) {
        Dog dog = new Dog();
        dog.name="小黄";
        System.out.println(dog.name);
        dog.bark();
        dog.eat();
    }
}
class Animal{
    public String name;
    public String color;
    public int age;
    public void bark(){
        System.out.println(name+"正在叫");
    }
    public void eat(){
        System.out.println(name+"正在吃饭");
    }
}
class Dog extends Animal{
}